<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:mif="urn:hl7-org:v3/mif"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="urn:hl7-org:v3 ..\sdschemas\CDA.xsd">
    <#assign templateData={"title":"成人健康体检", "code":"HSDC00.01", "templateId":"2.16.156.10011.2.1.1.16"}>
    <#include "fragment/header/header.ftl">

    <!-- 责任医生 -->
    <legalAuthenticator>
        <!-- 体检时间 -->
        <time value="${docData.legalAuthenticator.time}"/>
        <signatureCode></signatureCode>
        <assignedEntity>
            <id/>
            <assignedPerson>
                <name>${docData.legalAuthenticator.name}</name>
            </assignedPerson>
        </assignedEntity>
    </legalAuthenticator>

    <relatedDocument typeCode="RPLC">
        <parentDocument classCode="DOCCLIN" moodCode="EVN">
            <id root="2.16.156.10011.1.1.2" extension="D2011000000"/>
            <setId/>
            <versionNumber value="1"/>
        </parentDocument>
    </relatedDocument>

    <component>
        <structuredBody>
            <!--症状章节-->
            <#if docData.zhengZhuangList??>
                <component>
                    <section>
                        <code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
                              displayName="PROBLEM LIST"/>
                        <!-- 条目：症状代码：个体的症状在特定编码体系中的代码-->
                        <text/>
                        <!-- 条目：症状名称：个体出现的临床主要症状的名称-->
                        <#list docData.zhengZhuangList as zhengzhuang>
                            <#include "fragment/body/jiankangtj/zhengzhuang.ftl">
                        </#list>
                    </section>
                </component>
            </#if>


            <!--生命体征章节-->
            <#if docData.shengMingTZ??>
                <component>
                    <section>
                        <code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
                              displayName="VITAL SIGNS"/>
                        <text/>
                        <#include "fragment/body/jiankangtj/shengmingtz.ftl">
                    </section>
                </component>
            </#if>

            <!--口腔、咽喉和牙齿章节-->
            <#if docData.kouQiang??>
                <component>
                    <section>
                        <code code="10201-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
                              displayName="EMOUTH and THROAT and TEETH"/>
                        <text/>
                        <#include "fragment/body/jiankangtj/kouqiang.ftl">
                    </section>
                </component>
            </#if>

            <!--眼章节-->
            <#if docData.yanBu??>
                <component>
                    <section>
                        <code code="10197-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
                              displayName="Physical findings of Eye"/>
                        <text/>
                        <#include "fragment/body/jiankangtj/yanbu.ftl">
                    </section>
                </component>
            </#if>

            <!--耳章节-->
            <component>
                <section>
                    <code code="10195-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="EAR"/>
                    <text/>
                    <entry>
                        <observation classCode="OBS" moodCode="EVN">
                            <code code="DE04.10.190.00" codeSystem="2.16.156.10011.2.2.1" codeSystemName="卫生信息数据元目录"
                                  displayName="听力检测结果代码"/>
                            <value xsi:type="CD" code="${docData.tingLi.code}" codeSystem="2.16.156.10011.2.3.2.7"
                                   codeSystemName="听力检测结果代码表" displayName="${docData.tingLi.displayName}"/>
                        </observation>
                    </entry>
                </section>
            </component>

            <!--腹部章节-->
            <#if docData.fuBu??>
                <component>
                    <section>
                        <code code="10191-5" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
                              displayName="ABDOMEN"/>
                        <text/>
                        <#include "fragment/body/jiankangtj/fubu.ftl">
                    </section>
                </component>
            </#if>

            <!--功能检查章节-->
            <#if docData.gongNengJC??>
                <component>
                    <section>
                        <code code="46006-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
                              displayName="Physical functioning and structural problems"/>
                        <#include "fragment/body/jiankangtj/gongnengjc.ftl">
                    </section>
                </component>
            </#if>

            <!--心脏章节-->
            <#if docData.xinZhang??>
                <component>
                    <section>
                        <code code="10200-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
                              displayName="HEART"/>
                        <text/>
                        <#include "fragment/body/jiankangtj/xinzhang.ftl">
                    </section>
                </component>
            </#if>

            <!--血管章节-->
            <#if docData.xueGuan??>
                <component>
                    <section>
                        <code code="10208-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
                              displayName="VESSELS"/>
                        <text/>
                        <entry>
                            <observation classCode="OBS" moodCode="EVN">
                                <code code="DE04.10.238.00" codeSystem="2.16.156.10011.2.2.1" codeSystemName="卫生信息数据元目录"
                                      displayName="足背动脉搏动代码"/>
                                <value xsi:type="CD" code="${docData.xueGuan.zuBeiDMBD.code}"
                                       displayName="${docData.xueGuan.zuBeiDMBD.displayName}"
                                       codeSystem="2.16.156.10011.2.3.1.69" codeSystemName="足背动脉搏动代码表"/>
                            </observation>
                        </entry>
                    </section>
                </component>
            </#if>

            <!--呼吸系统章节-->
            <#if docData.huXiXT??>
                <component>
                    <section>
                        <code code="11412-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
                              displayName="RESPIRATORY SYSTEM"/>
                        <#include "fragment/body/jiankangtj/huxixt.ftl">
                    </section>
                </component>
            </#if>


            <!--皮肤章节-->
            <component>
                <section>
                    <code code="29302-7" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
                          displayName="INTEGUMENTARY SYSTEM"/>
                    <text/>
                    <entry>
                        <observation classCode="OBS" moodCode="EVN">
                            <code code="DE04.10.129.00" codeSystem="2.16.156.10011.2.2.1" codeSystemName="卫生信息数据元目录"
                                  displayName="皮肤检查结果代码"/>
                            <value xsi:type="CD" code="${docData.piFu.piFuJC.code}"
                                   displayName="${docData.piFu.piFuJC.displayName}" codeSystem="2.16.156.10011.2.3.1.58"
                                   codeSystemName="皮肤检查结果代码表"/>
                        </observation>
                    </entry>
                </section>
            </component>

            <!--淋巴系统章节-->
            <#if docData.linBaJC??>
                <component>
                    <section>
                        <code code="11447-0" displayName="HEMATOLOGIC+LYMPHATIC+IMMUNOLOGIC SYSTEM"
                              codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
                        <text/>
                        <entry>
                            <observation classCode="OBS" moodCode="EVN">
                                <code code="DE04.10.113.00" codeSystem="2.16.156.10011.2.2.1" codeSystemName="卫生信息数据元目录"
                                      displayName="淋巴结检查结果代码"/>
                                <value xsi:type="CD" code="${docData.linBaJC.code}" codeSystem="2.16.156.10011.2.3.1.65"
                                       codeSystemName="淋巴结检查结果代码表" displayName="${docData.linBaJC.displayName}"/>
                            </observation>
                        </entry>
                    </section>
                </component>
            </#if>


            <!--四肢章节-->
            <#if docData.xiaZhiSZ??>
                <component>
                    <section>
                        <code code="10196-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
                              displayName="EXTREMITIES"/>
                        <text/>
                        <entry>
                            <observation classCode="OBS" moodCode="EVN">
                                <code code="DE04.10.201.00" codeSystem="2.16.156.10011.2.2.1" codeSystemName="卫生信息数据元目录"
                                      displayName="下肢水肿检查结果代码"/>
                                <value xsi:type="CD" code="${docData.xiaZhiSZ.code}"
                                       codeSystem="2.16.156.10011.2.3.1.68" codeSystemName="下肢水肿检查结果代码表"
                                       displayName="${docData.xiaZhiSZ.displayName}"/>
                            </observation>
                        </entry>
                    </section>
                </component>
            </#if>


            <!--直肠章节-->
            <#if docData.gangMenZZ??>
                <component>
                    <section>
                        <code code="10205-3" displayName="RECTUM" codeSystem="2.16.840.1.113883.6.1"
                              codeSystemName="LOINC"/>
                        <text/>
                        <entry>
                            <observation classCode="OBS" moodCode="EVN">
                                <code code="DE04.10.064.00" codeSystem="2.16.156.10011.2.2.1" codeSystemName="卫生信息数据元目录"
                                      displayName="肛门指诊检查结果类别代码"/>
                                <value xsi:type="CD" code="${docData.gangMenZZ.code}"
                                       displayName="${docData.gangMenZZ.displayName}"
                                       codeSystem="2.16.156.10011.2.3.1.67" codeSystemName="肛门指诊检查结果代码表"/>
                            </observation>
                        </entry>
                    </section>
                </component>
            </#if>


            <!--乳腺章节-->
            <#if docData.ruXian??>
                <component>
                    <section>
                        <code code="10193-1" displayName=" Breasts" codeSystem="2.16.840.1.113883.6.1"
                              codeSystemName="LOINC"/>
                        <text/>
                        <entry>
                            <observation classCode="OBS" moodCode="EVN">
                                <code code="DE04.10.159.00" codeSystem="2.16.156.10011.2.2.1" codeSystemName="卫生信息数据元目录"
                                      displayName="乳腺检查结果代码"/>
                                <value xsi:type="CD" code="${docData.ruXian.code}" codeSystem="2.16.156.10011.2.3.1.66"
                                       codeSystemName="乳腺检查结果代码表" displayName="${docData.ruXian.displayName}"/>
                            </observation>
                        </entry>
                    </section>
                </component>
            </#if>

            <!--生殖器章节-->
            <#if docData.shengZhiQ??>
                <component>
                    <section>
                        <code code="11400-9" codeSystem="2.16.840.1.113883.6.1" displayName="GENITALIA"
                              codeSystemName="LOINC"/>
                        <text/>
                        <#include "fragment/body/jiankangtj/shengzhiq.ftl">
                    </section>
                </component>
            </#if>

            <!--实验室检查章节-->
            <#if docData.shiYanSJC??>
                <component>
                    <section>
                        <code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
                              displayName="STUDIES SUMMARY"/>
                        <text/>
                        <#include "fragment/body/jiankangtj/shiyansjc.ftl">
                    </section>
                </component>
            </#if>

            <!-- 辅助检查章节 -->
            <#if docData.fuZhuJC??>
                <component>
                    <section>
                        <code displayName="辅助检查"/>
                        <#include "fragment/body/jiankangtj/fuzhujc.ftl">
                    </section>
                </component>
            </#if>

            <!-- 诊断记录章节 -->
            <#if docData.zhenDuanJL??>
                <component>
                    <section>
                        <code code="29548-5" displayName="Diagnosis" codeSystem="2.16.840.1.113883.6.1"
                              codeSystemName="LOINC"/>
                        <text/>
                        <#include "fragment/body/jiankangtj/zhenduanjl.ftl">
                    </section>
                </component>
            </#if>

            <!-- 用药章节 -->
            <#if docData.yongYao??>
            <#list docData.yongYao as yongyao>
                <component>
                    <section>
                        <code code="10160-0" codeSystem="2.16.840.1.113883.6.1" displayName="HISTORY OF MEDICATION USE"
                              codeSystemName="LOINC"/>
                        <text/>
                        <#list yongyao.yongYaoItemList as item>
                            <#include "fragment/body/jiankangtj/yongyao.ftl">
                        </#list>
                    </section>
                </component>
            </#list>
            </#if>

            <!--家族史章节-->
            <#if docData.jiaZuS??>
                <component>
                    <section>
                        <code code="10157-6" displayName="HISTORY OF FAMILY MEMBER DISEASES"
                              codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
                        <#include "fragment/body/jiankangtj/jiazus.ftl">
                    </section>
                </component>
            </#if>

            <!--住院史章节 -->
            <component>
                <section>
                    <code code="11336-5" codeSystem="2.16.840.1.113883.6.1" displayName="HISTORY OF HOSPITALIZATIONS"
                          codeSystemName="LOINC"/>
                    <text/>
                    <#include "fragment/body/jiankangtj/zhuyuans.ftl">
                </section>
            </component>

            <!--预防接种史章节-->
            <#if docData.yuFangJZList??>
                <component>
                    <section>
                        <code code="11369-6" codeSystem="2.16.840.1.113883.6.1" displayName="HISTORY OF IMMUNIZATIONS"
                              codeSystemName="LOINC"/>
                        <text/>
                        <#list docData.yuFangJZList as item>
                            <#include "fragment/body/jiankangtj/yufangjz.ftl">
                        </#list>
                    </section>
                </component>
            </#if>

            <!--职业暴露史章节-->
            <#if docData.zhiYeBLSList??>
                <component>
                    <section>
                        <code code="10161-8" codeSystem="2.16.840.1.113883.6.1"
                              displayName="HISTORY OF OCCUPATIONAL EXPOSURE" codeSystemName="LOINC"/>
                        <text/>
                        <#list docData.zhiYeBLSList as item>
                            <#include "fragment/body/jiankangtj/zhiyebls.ftl">
                        </#list>
                    </section>
                </component>
            </#if>

            <!--生活方式章节-->
            <#if docData.shengHuoFS??>
                <component>
                    <section>
                        <code displayName="生活方式"/>
                        <text/>
                        <#include "fragment/body/jiankangtj/shenghuofs.ftl" >
                    </section>
                </component>
            </#if>

            <!--健康评估章节-->
            <#if docData.jianKangPG??>
                <component>
                    <section>
                        <code code="51848-0" displayName="Assessment note" codeSystem="2.16.840.1.113883.6.1"
                              codeSystemName="LOINC"/>
                        <text/>
                        <#include "fragment/body/jiankangtj/jiankangpg.ftl" >
                    </section>
                </component>
            </#if>

            <!--健康指导章节 -->
            <#if docData.jianKangZD??>
                <component>
                    <section>
                        <code code="69730-0" codeSystem="2.16.840.1.113883.6.1" displayName="Instructions"
                              codeSystemName="LOINC"/>
                        <text/>
                        <#include "fragment/body/jiankangtj/jiankangzd.ftl" >
                    </section>
                </component>
            </#if>

        </structuredBody>
    </component>
</ClinicalDocument>